package com.rtwo.tio.common;

import org.tio.core.intf.Packet;

/**
 * Created by bruce.zhou on 2018/6/29.
 */
public class BasicPacket extends Packet{

    private static final long serialVersionUID = -8388881207605047553L;

    private byte type;

    private byte[] body;

    public BasicPacket(){
        super();
    }

    public BasicPacket(byte type, byte[] body) {
        super();
        this.type = type;
        this.body = body;
    }

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }

    public byte[] getBody() {
        return body;
    }

    public void setBody(byte[] body) {
        this.body = body;
    }
}
